import ResultPage from 'components/ResultPage'
import CustomSign from 'pages/CustomSign'
import Manual from 'pages/Manual'
import SignContainer from 'pages/SignContainer'
import { Navigate } from 'react-router-dom'
type RouteItem = {
  path: string
  element: JSX.Element
}

export const routers: RouteItem[] = [
  {
    path: '/SignContainer',
    element: <SignContainer />
  },
  {
    path: '/CustomSign',
    element: <CustomSign />
  },
  {
    path: '/Manual',
    element: <Manual />
  },
  {
    path: '',
    element: <Navigate to='/SignContainer' />
  },
  {
    path: '/*',
    element: <ResultPage buttonText='返回首页' />
  }
]
